#include "ExpectedTokenException.h"
#include <boost/format.hpp>

ExpectedTokenException::ExpectedTokenException(std::string token_expected, std::string token_received, int line)
: VccException(""), token_expected(token_expected), token_received(token_received), line(line) {
    this->message = str(boost::format("error: %s expected, %s got (%d)") % token_expected % token_received % line); 
}

ExpectedTokenException::~ExpectedTokenException() {
    // empty
}

std::string ExpectedTokenException::get_token_expected() {
    return this->token_expected;
}

std::string ExpectedTokenException::get_token_received() {
    return this->token_received;
}

int ExpectedTokenException::get_line() {
    return this->line;
}
